<extend name='./Public/Base/admin_base.html' />
<block name='script'>
	<link rel="stylesheet" href="__PUBLIC__/Admin/service_list.css"> 
</block>
<block name='content'>

<div class='container-layout'>
	<div class='line margin'>
		<div class='x9'>首页 / 项目管理 / 信息审核</div>
	</div>
	<hr>

	<div class='line'>
		<div class='x3'>
			<select class='input' id='serviceInfoControl_serviceList'>
				<volist name='service_list' id='vo' >
					<option value='{$vo.type_id}'>{$vo.type_name}-{$vo.type_id}</option>
				</volist>
			</select>
		</div>
	</div>

	<div class='line margin-top margin-bottom serviceInfoControl_infoTypeSelect'>
		<div class='float-left margin-left'><button class='button' type='all'>全部</button></div>
		<div class='float-left margin-left'><button class='button' type='1'>待审核</button></div>
		<div class='float-left margin-left'><button class='button' type='2'>已通过</button></div>
		<div class='float-left margin-left'><button class='button' type='3'>未通过</button></div>
		<div class='float-left margin-left'><button class='button' type='4'>已删除</button></div>
	</div>

	

	<!--显示数据-->
	<div class='line'>
		<div class='x12' id='serviceInfoControl_infoList'>
			
					
		</div>
	</div>

	<!--显示分页-->
	<div class='line margin-large'>
		<if condition="strlen($fpage) gt 0">
			<div class='x12  text-center'>
				{$fpage}
			</div>
		</if>
	</div>

</div>

<img id='service_info_check_imgViewTmp' src='' style='width:250px;position:absolute;left:100px;top:100px;display:none' />



</block>

<block name='bottom'>
<script>
	$(function(){


		if(!sessionStorage.serviceInfoControl_serviceId){
			sessionStorage.serviceInfoControl_serviceId = $('#serviceInfoControl_serviceList').find('option:selected').val();
		}else{
			$("#serviceInfoControl_serviceList").find('option').each(function(){
				if($(this).val() == sessionStorage.serviceInfoControl_serviceId){
					$(this).attr('selected',true);
				}
			})
		}

		if(!sessionStorage.serviceInfoControl_infoType){
			sessionStorage.serviceInfoControl_infoType = 'all';
		}
		$('.serviceInfoControl_infoTypeSelect .button').click(function(){
			sessionStorage.serviceInfoControl_infoType = $(this).attr('type');
			sessionStorage.serviceInfoControl_pnow = 1;
			location.reload(true);
		});

		$('.serviceInfoControl_infoTypeSelect .button').each(function(){
			if($(this).attr('type') == sessionStorage.serviceInfoControl_infoType){
				$(this).addClass('bg-main');
			}
		});


		service_info_control_infoList();
		$('#serviceInfoControl_serviceList').change(function(){
			sessionStorage.serviceInfoControl_serviceId = $(this).find('option:selected').val();
			sessionStorage.serviceInfoControl_pnow = 1;
		//	alert(sessionStorage.serviceInfoControl_serviceId);
			service_info_control_infoList();
		});



	});	

	function service_info_control_infoList(){
		if(!sessionStorage.serviceInfoControl_pnow){
			sessionStorage.serviceInfoControl_pnow = 1;
		}
		$.ajax({
			url:'__URL__/service_info_control_infoList',
			data:{
				service_id:sessionStorage.serviceInfoControl_serviceId,
				info_type:sessionStorage.serviceInfoControl_infoType,
				pnow:sessionStorage.serviceInfoControl_pnow
			},
			success:function(res){
				$('#serviceInfoControl_infoList').html(res);
			}
		});
	}

</script>	
</block>